home *** CD-ROM | disk | FTP | other *** search
- (*************************************************************************
-
- $RCSfile: ARPUtil.mod $
- Description: Support for clients of arp.library
-
- Created by: fjc (Frank Copeland)
- $Revision: 2.10 $
- $Author: fjc $
- $Date: 1995/06/04 23:11:42 $
-
- Copyright © 1994-1995, Frank Copeland.
- This file is part of the Oberon-A Library.
- See Oberon-A.doc for conditions of use and distribution.
-
- *************************************************************************)
-
- <* STANDARD- *>
-
- MODULE ARPUtil;
-
- IMPORT SYS := SYSTEM, i := Intuition, ARP;
-
- (*------------------------------------*)
- (*
- Simple wrapper for calling the ARP FileRequester.
- *)
-
- PROCEDURE RequestFile * (
- window : i.WindowPtr;
- hail : ARRAY OF CHAR;
- VAR file : ARRAY OF CHAR;
- VAR directory : ARRAY OF CHAR )
- : BOOLEAN;
-
- VAR fr : ARP.FileRequester;
-
- <*$CopyArrays-*>
- BEGIN (* RequestFile *)
- fr.hail := SYS.ADR(hail);
- fr.file := SYS.ADR(file);
- fr.dir := SYS.ADR(directory);
- fr.window := window;
- fr.funcFlags := {ARP.newIDCMP, ARP.doColor};
- fr.flags2 := {ARP.longPath};
- fr.leftEdge := 0;
- fr.topEdge := 0;
- RETURN (ARP.FileRequest (fr) # NIL);
- END RequestFile;
-
- END ARPUtil.
-